/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package day06;

/**
 *
 * @author Administrator
 */
public abstract class AShape {
    protected APoint apoint;
    protected String color;
    
    public AShape(APoint apoint, String color){
        this.apoint = apoint;
        this.color  = color;
    }
/*
 * Tinh dien tich
 */    
   public abstract double dientich();  
   
 /*
  * Chu vi
  */ 
   
   public abstract  double chuvi();
   
   /*
    * toString
    */
   @Override
   public String toString(){
      return this.apoint + " "+ this.color; 
   
   }
    
}
